package ai.peanut.one.api.tread.testLock;

import ai.peanut.one.api.tread.test2.ProduAndConsume;

public class ThreadCusLock extends Thread {

    private ProduAndConsumeLock p ;
    public ThreadCusLock(ProduAndConsumeLock p){
        this.p = p ;
    }
    @Override
    public void run() {
        while(true){
            p.csu();

        }
    }
}
